import instance from "@/utils/request";

export function getBannerList() {
  return instance({
    url: 'api/menu/list',
    method: 'get'
  })
}

//获取秒杀产品列表的数据
export function getSeckillList(params) {
  return instance.get('api/pro/seckilllist', { params })
}

// 获取推荐产品的数据
export function getRecommendList(params) {
  return instance.get('/api/pro/recommendlist', { params })
}

// 产品详细信息
export function getDetail(id) {
  return instance.get('/api/pro/detail/' + id)
}